package com.hui.zhifubao1.config;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *???AlipayConfig
 *????????
 *????????????????
 *?????2017-04-05
 *???
 *?????????????????????????????????????????????,???????????
 *???????????????????????????
 */

public class AlipayConfig {
	
//?????????????????????????????????????

	// ??ID,??APPID?????????APPID???????
	public static String app_id ="2021000116694712";
	
	// ???????PKCS8??RSA2??
    public static String merchant_private_key ="MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCN8vQpw3yH3c4zolhv9JdRPGVCs9oPku6L7782PI8p4uo//7KrRZkq8dOsnNueRPecOnPT99Dt+89b5V9X0GC6MbyFKJrRYYg+phQxWF/G82Wu1LYZ1AZWlSiahtuthK5uvrTEgU1E8clE6sY4Dh9dSlJgDZ6IvLlrdvyoSVABk8WeN4UEKeK3YZZDB/SEo7+00fuLgy2+yRGTMCxxxNeC7GTB8l56uKJHJ5fNeDbWe7HDgvhMSnLZkP39WDCgkMt+ksCvJW1chHAyprbjTBS+06iirJdZPCKz1j44jlO+7hGR9FX0X43iuB6Ct9uy8odAf4mP6Rx1QU3hdYrP59dXAgMBAAECggEAC/FnDaR+88d7s+hy3GiN2q3kLyqGrEzGeUugoOWTfgizgNL4q2RdsLlL//fqmnRfCOv6FtmA4KURG0A/N1o26TOKEwIJlJhKKEs847H1zP1pjr4i3CV0qxA9rFKwZPcG3hZ5ixb981EMiBngt5KonObF64L51bNbPmlydI5GhvtRR7xFTrfjnpNZGhoJNZOdJEC3i5d5YKvopfdMsmlnfOC/opJ/9TcHNueDsBjollMHtjTUML9WH3KW0pGpsfMWaO1ucwoscQ/vFTyC5bKzTJ7mz8VUl8r5kP2LVrSrgeQd5km87E7Ej/AIC0I9dMBgrlMDGLxV2WjXCY8gkem3AQKBgQDkjkJSrTZsySHxeHZ+R7LiJ8hKHeQI8Rp4FOcQRL+TUp/ts3QD+2jc5xS+KFtxnkQUxNACKhAv/zrJjcO4MhmhVaaNpd1iS1LoMVQzionLSh3jnGsJEdK6uw8SaOs1lk7ktvzeaGAt1S8+sZUs8GU0IefQhKGO0TFhAQbvntrgQQKBgQCe/m3b8GJQNctnoCx31aX9xxQaJ2BUPs/fgu5EfPaxX11vAoJSVt/EunrpokyPBzUyhrS1D/ULShm+dPFn1BrZv0L0VmolGhcPnIBIvurpMn7TeoDdnhCqvF75GdPbRwCupa9bCdRvnqOGPsiUny6jr0Y5Me7xYOV4U2DblZlRlwKBgFghfvOQdRcXq64IDHD/RrwsKPBjfEXyaol5TewZBmJRjvfCpe7PKA1eUcJNn409QPVdOvRKsflACrQjpR/GudlbRKEEH0zCzNJaCyTgu+eWydW1wBQ8Oizk6pfnuyLrtbo90V4Vk1i5BsG/Ck3M2Ml0dYYTTpTal5bXJYyKjc3BAoGAPshrazkuKUxEyOO4C44DIQY2yukXocy32yPhoIvUAlCNHaPZAFirvgyBMrbTEnufJxeITiNB+TZGmi2lkgFwpOFguAlTmtkFmDWNdqxlKLa23B14u4qKPFFsE2N+hA0ymMR2TTXBfF4hZoZuQDnned1hln5AQ3Kmym/qRGt7gnsCgYAib8PQCqtnfLIXNFoOKIK+KghVJWcHFD/qu5rcrW7OpkrHWhJXWn/JV6K1eWFSQwZR+E17+WzEFftn9mt/tN/ahs7Dk/BhDEDdcoRNMzVgQSadVm9tWev8wUCDOKPI8HmX1L//JEwbK1r8KAVzKJfjz/wGwEDip4MrS1mWCzTI3g==";


    // ?????,?????https://openhome.alipay.com/platform/keyManage.htm ??APPID????????
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAi8rUN0INC31eN5AEOSfn4MwlKDwUet6gNbWJPWs8/l4nbTrASf4XBaNOhiUPjoYZONcOxsG/te8HAJvZsqZtdWXKTJ/ewxIzDjNHbWWoqhLXx1Dp60R3j/Z3hifIXzq6mY71ZM+13rHuShZj0ejDUh/7PY9+CpeXNX/S+ATPiBftISdTxD60v++onLDF1wmXULq32tiArqe4VlXpZXzhNdYCH1An+PtDaUttMNAbKK4Ev0oniR8/LVx9ZbHIMl1OW8M9i7xkb56USYMR5KYYyt4jauWqbpJNGyreMTWHmrxcz6H69luv6jX3IeIUnwPwThrLZzwbpSfvvvx+8pjf/wIDAQAB";

    // ???????????  ?http://????????????id=123??????????????????
	public static String notify_url = "http://????????/alipay.trade.page.pay-JAVA-UTF-8/notify_url.jsp";

	// ???????????? ?http://????????????id=123??????????????????
	public static String return_url = "http://????????/alipay.trade.page.pay-JAVA-UTF-8/return_url.jsp";

	// ????
	public static String sign_type = "RSA2";
	
	// ??????
	public static String charset = "utf-8";
	
	// ?????
	public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

	// ?????
	public static String log_path = "C:\\";


//?????????????????????????????????????

    /** 
     * ?????????????????????????????
     * @param sWord ???????????
     */
    public static void logResult(String sWord) {
        FileWriter writer = null;
        try {
            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis()+".txt");
            writer.write(sWord);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (writer != null) {
                try {
                    writer.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}

